<template>
  <div>
    <!-- 导航栏 -->
    <div class="nav">
      <router-link to="/discover">发现音乐</router-link>
      <router-link to="/my">我的音乐</router-link>
      <router-link to="/friend">关注</router-link>
    </div>

    <!-- 下面放router-view --路由出口:用来切换页面的地方 -->
    <router-view />
  </div>
</template>

<script>
export default {}
</script>

<style>
img {
  width: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}
.nav {
  height: 50px;
  background-color: #242424;
  display: flex;
}

.nav a {
  text-decoration: none;
  color: #fff;
  flex: 1;
  text-align: center;
  line-height: 50px;
}

.nav a.router-link-active {
  color: #f00;
}
</style>
